package com.tuweiya.study.springmvc002.eventBus.event;

/**
 * @Author: Mr_tu
 * @Date: Create in 16:55 2018/6/7
 * @Description:
 */
public class ShortMsgEvent {
    private int loopIndex;

    public ShortMsgEvent(int loopIndex) {
        this.loopIndex = loopIndex;
    }

    public void sendMsg() {
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("send short message..." + loopIndex);
    }
}
